package org.example.bookstore.pojo.DO;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    private int id; //订单id
    private int userId;  //用户id
    private int bookId;  //书本id
    private int adressId;  //地址id
    private int bookNum;  //购买数量
    private int orderType;   //订单类型 0:购买  1：借书
    private float totalPrice;  //总价格
    private int payMethod; //支付方式 1：到付 2：微信支付 3 支付宝 4：银行卡
    private int payStatus;  //支付状态
    private LocalDateTime createTime;  //创建时间
    private LocalDateTime updateTime;  //更新时间
}
